package entity.common;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 菜品表
 * </p>
 *
 * @author admin
 * @since 2020-02-17
 */
@Data
@TableName("t_vegetable_info")
public class VegetableInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 菜名
     */
    @TableField("name")
    private String name;

    /**
     * 原价
     */
    @TableField("cost_price")
    private Double costPrice;

    /**
     * 优惠价
     */
    @TableField("preferential_price")
    private Double preferentialPrice;

    /**
     * 菜品大图
     */
    @TableField("image_url")
    private String imageUrl;

    /**
     * 菜系id
     */
    @TableField("menu_id")
    private Integer menuId;

    /**
     * 0:下架  1:上架
     */
    @TableField("status")
    private Integer status;

    /**
     * 库存
     */
    @TableField("stock")
    private Integer stock;

    /**
     * 菜品创建日期 yyyy-MM-dd HH:mm:ss
     */
    @TableField("create_time")
    private String createTime;

    /**
     * 菜品更新日期 yyyy-MM-dd HH:mm:ss
     */
    @TableField("update_time")
    private String updateTime;

    @TableField("user_id")
    private Integer userId;

    @TableField("user_name")
    private String username;

}
